<form name="[%$form.formcode%]" id="[%$form.formcode%]" method="post" action="[%$form.action%]">
	<input type="hidden" name="linkurl" value="add">
	<input type="hidden" name="fgid" id="fgid" value="[%$form.fgid%]">
	<input type="hidden" name="formcode" id="formcode" value="[%$form.formcode%]">
	<input type="hidden" name="countattrs" id="countattrs" value="[%$form.countattrs%]">
	<input type="hidden" name="isseccode" id="isseccode" value="[%$form.isseccode%]">
	<input type="hidden" name="did" id="fdid" value="[%$did%]">
	<div class="tg">[%$form.formgroupname%]</div>
	<div class="f">
		<table style="width: 100%" class="formlist">
			<tr>
				<td colspan="2" class="content">[%$form.content%]</td>
			</tr>
			[%forlist from=$attr key=i%]
			[%if $attr[i].isline==1%]
			<tr>
				<td colspan="2" class="content">[%$attr[i].typename%]</td>
			</tr>
			[%else%]
			<tr>
				<th>[%$attr[i].typename%]</th>
				<td>
					[%if $attr[i].inputtype=='string'%]<input type="text"[%if $attr[i].isvalidate==1%] onblur="if (this.value.match(/^[%$attr[i].validatetext%]$/ig)==null){alert('[%$attr[i].typename%][%$lngpack.inputerr%]');return false;}" [%/if%]name="formatt[[%$attr[i].attrname%]]" size="[%$attr[i].attrsize%]" maxlength="[%$attr[i].attrlenther%]" value="[%$attr[i].attrvalue%]" class="infoInput"/>[%/if%]
					[%if $attr[i].inputtype=='int'%]<input type="text" [%if $attr[i].isvalidate==1%] onblur="if (this.value.match(/^[%$attr[i].validatetext%]$/ig)==null){alert('[%$attr[i].typename%][%$lngpack.inputerr%]');return false;}" [%/if%]name="formatt[[%$attr[i].attrname%]]" size="[%$attr[i].attrsize%]" maxlength="[%$attr[i].attrlenther%]" value="[%$attr[i].attrvalue%]" class="infoInput"/>[%/if%]
					[%if $attr[i].inputtype=='datetime'%]
						 <input type="text" name="formatt[[%$attr[i].attrname%]]" size="[%$attr[i].attrsize%]" value="[%$attr[i].attrvalue%]" class="infoInput"/>
					[%/if%]
					[%if $attr[i].inputtype=='img'%]
						<input type="text" name="formatt[[%$attr[i].attrname%]]" size="[%$attr[i].attrsize%]" value="[%$attr[i].attrvalue%]" class="infoInput"/>
					[%/if%]
					[%if $attr[i].inputtype=='addon'%]
						<input type="text" name="formatt[[%$attr[i].attrname%]]" size="[%$attr[i].attrsize%]" value="[%$attr[i].attrvalue%]" class="infoInput"/>
					[%/if%]
					[%if $attr[i].inputtype=='text'%]<textarea name="formatt[[%$attr[i].attrname%]]" cols="[%$attr[i].attrsize%]" rows="[%$attr[i].attrrow%]" class="infoInput">[%$attr[i].attrvalue%]</textarea>[%/if%]
					[%if $attr[i].inputtype=='select'%]
						<select size="1" name="formatt[[%$attr[i].attrname%]]">
						[%forlist from=$attr[i].attrvalue key=ii%]
							<option [%if $attr[i].attrvalue[ii].selected=='selected'%]selected="selected" [%/if%]value="[%$attr[i].attrvalue[ii].name%]">[%$attr[i].attrvalue[ii].name%]</option>
						[%/forlist%]
						</select>
					[%/if%]
					[%if $attr[i].inputtype=='radio'%]
						[%forlist from=$attr[i].attrvalue key=ii%]
							<input [%if $attr[i].attrvalue[ii].selected=='selected'%]checked="checked" [%/if%]name="formatt[[%$attr[i].attrname%]]" type="radio" value="[%$attr[i].attrvalue[ii].name%]" /> [%$attr[i].attrvalue[ii].name%]
						[%/forlist%]
					[%/if%]
					[%if $attr[i].inputtype=='checkbox'%]
						[%forlist from=$attr[i].attrvalue key=ii%]
							<input [%if $attr[i].attrvalue[ii].selected=='selected'%]checked="checked" [%/if%]name="formatt[[%$attr[i].attrname%]]" type="checkbox" value="[%$attr[i].attrvalue[ii].name%]" /> [%$attr[i].attrvalue[ii].name%]
						[%/forlist%]
					[%/if%]
					[%if $attr[i].attrcue!=''%]<span>[%$attr[i].attrcue%]</span>[%/if%]
				</td>
			</tr>
			[%/if%]
			[%/forlist%]
			[%if $form.isseccode==1%]
			<tr>
				<th>[%$lngpack.verification%]</th>
				<td>
					<input type="text" id="code" name="seccode" class="infoInput" maxlength="4" size="3" style="text-transform: uppercase;"/>
					<img title="验证码" id="[%$form.formcode%]seccodesrc" onclick="sessionimg('[%$form.formcode%]seccodesrc','[%$url%]')" src="[%$seccodelink%]" style="cursor: pointer;" align="absmiddle"/>
				</td>
			</tr>
			[%/if%]
			<tr>
				<td></td>
				<td>
					<input type="submit" id="[%$form.formcode%]botton" name="Submit" value="[%$lngpack.submitbotton%]" class="buttonface" />
				</td>
			</tr>
		</table>
	</div>
</form>